package com.zhi.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 自定义UsernamePasswordToken类，增加userType用户类型字段
 */
public class UserLoginToken extends UsernamePasswordToken {

    //用户类型
    private String userType;

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public UserLoginToken(String username, String password, String userType) {
        super(username, password);
        this.userType = userType;
    }
}
